.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - var(--header-height, 56px)); /* 使用CSS变量控制高度 */
  overflow-y: auto;
}

/* 登录页的主内容区域充满整个视口 */
.login-container .main-content {
  height: 100vh;
  max-height: 100vh;
  --header-height: 0; /* 登录页没有header */
}

#root {
  width: 100vw;
  height: 100vh;
  margin: 0;
  text-align: center;
  overflow: hidden;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em rgba(100, 108, 255, 0.667));
}

.logo.react:hover {
  filter: drop-shadow(0 0 2em rgba(97, 218, 251, 0.667));
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

/* 适配iPad和平板设备 */
@media screen and (max-width: 1024px) {
  .app-container {
    max-width: 100%;
  }

  .main-content {
    max-width: 100%;
  }
}

/* 适配移动设备 */
@media screen and (max-width: 768px) {
  .main-content {
    overflow-y: auto;
  }
}

/* 定义全局的滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
